package services

func SummaryUpdateWeight(year, month int) {
	//更新结存数据
	//ok := true
	//crud := wms.NewSummaryCrud()
	//crud.Factory.SetAssociations("Item")
	//for ok {
	//	rows, _ := crud.FindBy(ss.M{"Y": year, "M": month}, []string{"id"}, 0, 1000)
	//	if len(rows) > 0 {
	//		for _, row := range rows {
	//			row.Weight = row.Num * row.Item.Weight
	//			row.Save()
	//		}
	//	} else {
	//		ok = false
	//	}
	//}
	//更新入库记录
}
